
lst = [90, 89, 77, 33, 22, 26,87, 99, 91]

for x in range(len(lst)):
    a = x
    for i in range(x-1,-1, -1):
        if lst[x]<lst[i]:
            a = i
        else:
            break
    lst.insert(a, lst[x])
    lst.pop(x+1)
print(lst)
